package com.ecb.business.dto.api;

import lombok.Data;

import java.io.Serializable;

@Data
public class RemoteResult implements Serializable {
    //{"flag":null,"errorCode":null,"errorInfo":null,"data":true,"code":200,"message":"Success"}
    private String flag;
    private String errorCode;
    private String errorInfo;
    private String originTxt;
    private Object data;
    private int code;
    private String message;


    public boolean isOk() {
        return "Success".equals(message) || 200 == code;
    }

}
